{{csrf_field()}}
<div class="layui-row">
    <div class="layui-col-md8">
        <div class="layui-form-item">
            <label class="layui-form-label">* 标题</label>
            <div class="layui-input-block">
                <input type="text" name="post_title" value="接口技术的实现:规范用户类的成员与类型" autocomplete="off" placeholder="" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">别名</label>
            <div class="layui-input-block">
                <input type="text" name="post_slug" value="" autocomplete="off" placeholder="拼音或者英文单词 用‘-’连接 用于URL中" class="layui-input">
                <div class="layui-form-mid layui-word-aux">拼音或者英文单词 用‘-’连接 用于URL中</div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">封面</label>
            <div class="layui-input-block">
                <input type="text" name="post_thumb" value="" autocomplete="off" placeholder="请上传文章封面" class="layui-input">
                <button type="button" class="layui-btn layui-btn-primary layui-btn-position ajax-images"><i class="fa fa-file-image-o"></i> 选择图片</button>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">封面</label>
            <div class="layui-input-block">
                <div class="layui-upload">
                    <button type="button" class="layui-btn" id="test1">上传图片</button>
                    <div class="layui-upload-list">
                        <img class="layui-upload-img" id="demo1">
                        <p id="demoText"></p>
                    </div>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">* 所属分类</label>
            <div class="layui-input-block">

                <select name="category" xm-select-direction="up" xm-select="select1" xm-select-search-type="dl" xm-select-search>
                    <option value="1" >北京</option>
                    <option value="2" selected="selected">上海</option>
                    <option value="3">广州</option>
                    <option value="4" selected="selected">深圳</option>
                    <option value="5">天津</option>
                    <option value="1" >北京</option>
                    <option value="2" selected="selected">上海</option>
                    <option value="3">广州</option>
                    <option value="4" selected="selected">深圳</option>
                    <option value="5">天津</option>
                    <option value="1" >北京</option>
                    <option value="2" selected="selected">上海</option>
                    <option value="3">广州</option>
                    <option value="4" selected="selected">深圳</option>
                    <option value="5">天津</option>
                    <option value="1" >北京</option>
                    <option value="2" selected="selected">上海</option>
                    <option value="3">广州</option>
                    <option value="4" selected="selected">深圳</option>
                    <option value="5">天津</option>
                </select>



            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">标签</label>
            <div class="layui-input-block tags" id="tags">
                <input type="text" name="post_tag" id="inputTags" value="接口技术的实现:规范用户类的成员与类型" autocomplete="off" placeholder="" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">跳转链接</label>
            <div class="layui-input-block">
                <input type="text" name="post_jump_url"  autocomplete="off" placeholder="" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">详情内容</label>
            <div class="layui-input-block">

                <textarea id="content" name="content" placeholder="请输入详情内容" ></textarea>

            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label">作者：</label>
            <div class="layui-input-block">
                <input type="text" name="post_author"  autocomplete="off" placeholder="" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">来源：</label>
            <div class="layui-input-block">
                <input type="text" name="post_source"  autocomplete="off" placeholder="" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">发布时间：</label>
            <div class="layui-input-block">
                <input type="text" name="post_date"  autocomplete="off" placeholder="" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序：</label>
            <div class="layui-input-block">
                <input type="text" name="post_sort" autocomplete="off" placeholder="" class="layui-input">
                <div class="layui-form-mid layui-word-aux">数字越小越靠前</div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">阅读数量：</label>
            <div class="layui-input-block">
                <input type="text" name="post_read_num" autocomplete="off" placeholder="" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态：</label>
            <div class="layui-input-block">
                <select name="post_status">
                    <option value="">请选择所属分类</option>
                    <option value="1" selected="selected"> 前端开发</option>
                    <option value="2" > 后端开发</option>
                    <option value="3" > 移动互联</option>
                    <option value="4" > 人工智能</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">评论开关：</label>
            <div class="layui-input-block">
                <input type="checkbox" checked="" name="comment_status" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">访问密码：</label>
            <div class="layui-input-block">
                <input type="text" name="post_password" autocomplete="off" placeholder="" class="layui-input">
                <div class="layui-form-mid layui-word-aux">默认空，无密码可访问</div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">浏览量：</label>
            <div class="layui-input-block">
                <input type="text" name="post_view" autocomplete="off" placeholder="" class="layui-input">

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">自定模板：</label>
            <div class="layui-input-block">
                <select name="post_template">
                    <option value="">自定模板</option>
                    <option value="1" selected="selected"> 前端开发</option>
                    <option value="2" > 后端开发</option>
                    <option value="3" > 移动互联</option>
                    <option value="4" > 人工智能</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-filter="*" lay-submit="">保 存</button>
                <button class="layui-btn" lay-filter="*" lay-submit="">预 览</button>
                <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
            </div>
        </div>

    </div>
</div>
